package com.liao.seckill.util;

import org.junit.jupiter.api.Test;

import java.util.UUID;

/**
 * @author lzp
 * @version 1.0
 * lzpnb!
 */
public class UUIDUtil {
    public static String uuid() {
        //把 UUID 中的- 替换掉
        return UUID.randomUUID().toString().replace("-", "");
    }


    @Test
    public void test(){
        System.out.println(UUID.randomUUID().toString());
    }
}
